package com.javasm.common.interceptor;

//public class UserLoginInterceptor implements HandlerInterceptor {
//
//    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)throws Exception  {
//        String method = request.getMethod();
//        System.out.println("method=="+method);
//        String requestURI = request.getRequestURI();
//        System.out.println("requestURI==="+requestURI);
////        if ("/common/doLogin".equals(requestURI)){
//            String authorization = request.getHeader("Authorization").split(" ")[1];
//            if (null==authorization || "null".equals(authorization)){
//            throw new NoLoginException(EnumStatus.NO_TOKEN);
//        }
//            System.out.println("Authorization=="+authorization);
////        }
//
//        return true;
//    }
//}
